package com.md.api.dao;

import com.md.api.entity.ShoppingSkuAttributeRelation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShoppingSkuAttributeRelationMapper {

    int deleteByPrimaryKey(Long id);

    int insert(ShoppingSkuAttributeRelation record);

    int insertBatch(@Param("skuAttributeList") List<ShoppingSkuAttributeRelation> skuAttributeList);

    List<ShoppingSkuAttributeRelation> selectAll();

    int fullAttributeId(String spuId);

    ShoppingSkuAttributeRelation getByAttributeId(@Param("attributeId")String attributeId);

    ShoppingSkuAttributeRelation getByAttributeValueId(@Param("attributeValueId")String attributeValueId);
}